package com.szpx.service.impl;

import com.szpx.entity.daimingdongentity.*;
import com.szpx.mapper.StatementMapper;
import com.szpx.service.StatementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author daimingdong
 * @version 2024/4/4 15:06
 * description
 * @title StatementServiceImpl
 **/
@Service
public class StatementServiceImpl implements StatementService {
    // 注入StatementMapper
    @Autowired
    private StatementMapper statementMapper;

    // 获取所有入库报表
    @Override
    public List<StockInReport> getAllStockInReports() {
        return statementMapper.getAllStockInReports();
    }

    // 获取所有出库报表
    @Override
    public List<StockOutReport> getAllStockOutReports() {
        return statementMapper.getAllStockOutReports();
    }

    // 获取所有内部报表
    @Override
    public List<InternalReport> getAllInternalReports() {
        return statementMapper.getAllInternalReports();
    }

    // 获取所有调度统计
    @Override
    public List<DispatchStatistics> getAllDispatchStatistics() {
        return statementMapper.getDispatchStatistics();
    }

    // 获取所有回执统计
    @Override
    public List<ReceiptStatistics> getAllReceiptStatistics() {
        return statementMapper.getReceiptStatistics();
    }

    @Override
    public List<StockInReport> searchStockInReports(String keyword) {
        return statementMapper.searchStockInReports(keyword);
    }

    @Override
    public List<StockOutReport> searchStockOutReports(String keyword) {
        return statementMapper.searchStockOutReports(keyword);
    }

    @Override
    public List<InternalReport> searchInternalReports(String keyword) {
        return statementMapper.searchInternalReports(keyword);
    }

    //搜索派件统计
    @Override
    public List<DispatchStatistics> searchDispatchStatistics(String keyword) {
        return statementMapper.searchDispatchStatistics(keyword);
    }

    //搜索收件统计
    @Override
    public List<ReceiptStatistics> searchReceiptStatistics(String keyword) {
        return statementMapper.searchReceiptStatistics(keyword);
    }


}
